import { BblClub } from "../entity/club.entity";
import { AttachDto } from "./att.dto";

export class ClubCreateDto {
  clubMainName: string;
  clubSubName: string;
  clubPrice: number;
  attId: string;
}

export class ClubPageQueryDto {
  clubMainName: string;
  clubSubName: string;
  pageSize: number;
  current: number;
}

export class ClubDto {
  constructor(club: BblClub) {
    this.clubId = club.clubId;
    this.clubMainName = club.clubMainName;
    this.clubSubName = club.clubSubName;
    this.clubPrice = club.clubPrice;
    this.clubImg = new AttachDto(club.clubImg);
    this.createAt = club.createAt.valueOf();
  }

  clubId: string;
  clubMainName: string;
  clubSubName: string;
  clubPrice: number;
  clubImg: AttachDto;
  createAt: number;
}
